{
	"disable_upgrade": true,
  "servers": [
    {
      "default_log_path": "stdout",
      "routers": [
        {
          "router_config_name": "server_router",
          "virtual_hosts": [
            {
              "name": "serverHost",
              "domains": ["*"],
              "routers": [
                {
                  "match": {
                    "prefix": "/"
                  },
                  "route": {
                    "cluster_name": "serverCluster"
                  }
                }
              ]
            }
          ]
        }
      ],
      "listeners": [
        {
          "name": "serverListener",
          "address": "127.0.0.1:2046",
          "bind_port": true,
          "filter_chains": [
            {
              "filters": [
                {
                  "type": "proxy",
                  "config": {
                    "downstream_protocol": "Http1",
                    "upstream_protocol": "Http1",
                    "router_config_name": "server_router"
                  }
                }
              ]
            }
          ],
          "stream_filters": [
            {
              "type": "flowControlFilter",
              "config": {
                "app_name": "sample",
                "log_path": "/tmp/sentinel",
                "global_switch": true,
                "monitor": false,
                "limit_key_type": "PATH",
                "action": {
                  "status": 500,
                  "body": "blocked"
                },
                "rules": [
                  {
                    "resource": "/test",
                    "limitApp": "",
                    "grade": 1,
                    "threshold": 1,
                    "strategy": 0
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ],
  "cluster_manager": {
    "clusters": [
      {
        "name": "serverCluster",
        "type": "SIMPLE",
        "lb_type": "LB_RANDOM",
        "max_request_per_conn": 1024,
        "conn_buffer_limit_bytes": 32768,
        "hosts": [
          {
            "address": "127.0.0.1:8080"
          }
        ]
      }
    ]
  },
  "admin": {
    "address": {
      "socket_address": {
        "address": "0.0.0.0",
        "port_value": 34902
      }
    }
  }
}
